python convert polygone to centroid

46

# copy poly to new GeoDataFrame
points = poly.copy()
# change the geometry
points.geometry = points['geometry'].centroid

Comments

Submit
0 Comments